package daytrader.lib;

import daytrader.types.Stock;
import daytrader.types.Sector;

public class MockLibData implements LibDataInterface {
        public static final double OPEN = 1.0;
        public static final double CLOSE = 1.5;
        public static final double HIGH = 2.0;
        public static final double LOW = 0.5;
        public static final double VOLUME = 10.0;
        public static final Sector SECTOR = Sector.Technology;
        public static final String STOCKNAME = "mock";
	public boolean openStockFeed(String stockName) {
	   return true;
        }
	public boolean openStockFeed(Stock currStock) {
	   return true;
        }
	public String getCurrStockFeed() {
	   return STOCKNAME;
        }

	public double open(int day) {
	   return OPEN;
        }
	public double close(int day) {
	   return CLOSE;
        }
	public double high(int day) {
	   return HIGH;
        }
	public double low(int day) {
	   return LOW;
        }
	public double volume(int day) {
           return VOLUME;
        }
	public double open(int day, String stockname) {
	   return OPEN;
        }
	public double close(int day, String stockname) {
	   return CLOSE;
        }
	public double high(int day, String stockname) {
	   return HIGH;
        }
	public double low(int day, String stockname) {
	   return LOW;
        }
	public double volume(int day, String stockname) {
           return VOLUME;
        }
	public double open()
	{
		return open(0);
	}
	public double close()
	{
		return close(0);
	}
	public double high()
	{
		return high(0);
	}
	public double low()
	{
		return low(0);
	}
	public double volume()
	{
		return volume(0);
	}
	public double dayopen()
        {
                return open();
        }
	public double dayclose()
        {
                return close();
        }
	public double dayhigh()
        {
                return high();
        }
	public double daylow()
        {
                return low();
        }
	public double dayvolume()
        {
                return volume();
        }
	public Sector getSector(Stock stock)
        {
                return SECTOR;
        }
	public Sector getSector(String stockName)
        {
                return SECTOR;
        }
	public String[] listStockNames()
        {
                String[] ret;
                ret = new String[1];
                ret[0] = STOCKNAME;
                return ret;
        }
}
